package com.bytenebula.asteroid.utils;

import com.bytenebula.asteroid.TenantContext;
import com.mybatisflex.core.tenant.TenantFactory;

public class BnTenantFactory implements TenantFactory {

    /**
     * @deprecated 使用 {@link #getTenantIds(String)} 代替。
     */
    @Override
    @Deprecated
    public Object[] getTenantIds() {
        return new Object[] { TenantContext.getCurrentTenant() };
    }

    @Override
    public Object[] getTenantIds(String tableName) {
        return new Object[] { TenantContext.getCurrentTenant() };
    }
}
